package org.example.entity.system;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Description
 * @Author 魏锴
 * @Date 2024/1/11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoleOption {
    private String title;
    private String icon_url;//设置图标
    private List<PermOption> permOptions;

    public RoleOption(Role role, List<PermOption> options) {
        this(role.getTitle(), role.getIconUrl(), options);
    }
}
